package com.yunsom.testdemo.design.bridge;

/**
 * @author Xbao
 * @description
 * @date 2022/6/17 11:43
 */
public class Circle extends BaseShape{
  private int x,y,radius;

  protected Circle(int radius, int x, int y, DrawApi drawApi) {
    super(drawApi);
    this.radius = radius;
    this.x = x;
    this.y = y;
  }

  @Override
  public void draw() {
    drawApi.drawCircle(radius, x, y);
  }
}
